﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace KKU.RBSFPP.Web.Administrator.ReportingPages.Graphs
{
    public partial class YearSummary : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (DropDownList1.Items.Count == 0)
            {
                //foreach (var item in Enumerable.Range(DateTime.Now.Year, 3))
                foreach (var item in Enumerable.Range(2012, 5))
                {
                    DropDownList1.Items.Add(item.ToString());
                }
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            ReportViewer1.LocalReport.Refresh();
        }
    }
}